Skip to content

GODRIVER-3397 Remove the MONGODB-CR auth mechanism. #2103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2025

Conversation

matthewdale
Copy link
Collaborator

@matthewdale matthewdale commented Jun 17, 2025

GODRIVER-3397

Summary

Remove auth mechanism "MONGODB-CR" and all supporting code. Trying to use auth mechanism "MONGODB-CR" will now return error:

auth mechanism "MONGODB-CR" is not available in any supported version of MongoDB

Background & Motivation

Starting with v2.2.0, the Go Driver no longer supports any version of MongoDB that has auth mechanism "MONGODB-CR". Here are the errors you get when you try to use MongoDB 3.6, 4.0, and 8.0:

MongoDB 3.6:

server at localhost:27017 reports wire version 6, but this version of the Go driver requires at least 7 (MongoDB 4.0)

MongoDB 4.0, 4.2:

connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "MONGODB-CR": (BadValue) Auth mechanism not specified

MongoDB 8.0:

connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "MONGODB-CR": (CommandNotFound) no such command: 'getnonce'

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Jun 17, 2025
Copy link
Contributor

API Change Report

./v2/x/mongo/driver/auth

incompatible changes

MONGODBCR: removed
MongoDBCRAuthenticator: removed

@matthewdale matthewdale force-pushed the godriver3397-remove-cr branch from 70081eb to cf46ed0 Compare June 17, 2025 01:17
@matthewdale matthewdale marked this pull request as ready for review June 17, 2025 01:18
@matthewdale matthewdale requested a review from a team as a code owner June 17, 2025 01:18
Copy link
Member

@prestonvasquez prestonvasquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matthewdale matthewdale merged commit 6598290 into mongodb:master Jun 30, 2025
30 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low Low Priority PR for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants